package com.csmy.my.center.listenter;

import java.util.Timer;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.apache.log4j.Logger;

/**
 * 
 */
public class StartListener implements ServletContextListener {
	
	Logger log = Logger.getLogger(this.getClass());

	public void contextDestroyed(ServletContextEvent arg0) {
	}

	public void contextInitialized(ServletContextEvent arg0) {
//		索引库自动启动
		Timer timer = new Timer();
		//timer.schedule(new IndexTime(), 0, 1000*60*60*24);
	}
	
	public static void main(String[] agreStrings) {
		//System.out.println(StartListener.class.getResource("/").getPath());
	}

}
